//复制文本
import {ElMessage } from 'element-plus'
export const useCopy=(text:string)=>{
  let input=document.createElement('input')
  input.value=text
  document.body.appendChild(input)
  input.select()
  document.execCommand('Copy')
  document.body.removeChild(input)
  ElMessage({
    message: '复制成功',
    type: 'success',
  })
}